clear 
cd "C:\Users\selfd\Documents\autopartyinstitutionalization\legacy\cps\replication\data\stata"
use "C:\Users\selfd\Documents\autopartyinstitutionalization\legacy\cps\replication\data\stata\stata_replication_table3.dta"

xtset ccode year

*run model 2 in Table 3 with PCSE
xtpcse v2xps_party i.gwf_prior pi1 prior_pi reactive gwf_pduration v2x_polyarchy lgdp gwf_number fsu ussr_sat regime_elecs av_dm, pairwise
*run model 4 in Table 3 with PCSE
xtpcse v2xel_frefair i.gwf_prior pi1 prior_pi reactive gwf_pduration v2x_polyarchy lgdp gwf_number fsu ussr_sat regime_elecs av_dm, pairwise
